package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`purchase_order`")
public class PurchaseOrder {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;  //采购订单id

    private String proName;   //产品名称

    private  String supplier;  //供应商

    private Integer quantity;  //数量

    private Double price;  //单价

    private String review;  //审核状态

    private String Allocation;  //分配状态

    private String delivered;  //发货状态

    private Integer createBy;  //创建人


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;  //创建时间

    private Integer updateBy;  //修改人


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime; //修改时间

    @TableLogic
    private Integer deleted;  //逻辑删除

    private String rensona;

    private String rensonb;

    private String rensonc;

    private String rensond;


    private Double total;  //总金额
    @TableField(exist = false)
    private Integer count;
}

